#include <iostream>
#include <cstdio>

using namespace std;

namespace Test2019_002 {
int main();
int main()
{
	char a;
	scanf("%c", &a);
	cout << "  " << a << endl;
	cout << " " << a << a << a << endl;
	cout << a << a << a << a << a << endl;
	cout << " " << a << a << a << endl;
	cout << "  " << a << endl;
	return 0;
}
}

int main_Test2019_002()
{
	Test2019_002::main();
	return 0;
}